import opreate from '@dfeidao/atom-nodejs/db/operate';
import { IncomingHttpHeaders } from 'http';
import { productid ,systemid} from '../../atom/config';
interface Message {
filter: {
	record_no: string;
};
}
export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	const op = opreate(action_id,session_id,systemid);
	op.del('asset_inventory',  {productid,record_no:message.filter.record_no});
	op.del('lnventory_details',{productid,record_no:message.filter.record_no});
	const res= await op.exec();
	return res;
}
